//
//  WPMoreDetailFemaleVC.m
//  wobingwoyi
//
//  Created by WGP on 2016/11/15.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPMoreDetailFemaleVC.h"

@interface WPMoreDetailFemaleVC ()

@end

@implementation WPMoreDetailFemaleVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.imageView.image = [UIImage imageNamed:@"female_body"];
}

-(void)changeBtnDidClick:(UIButton *)btn
{
    //zoomScale这个值决定了contents当前扩展的比例
    if (self.scrollView.zoomScale > 1.0)
    {
        CGRect zoomRect = [self zoomRectForScale:1.0 withCenter:CGPointMake(10, 10)];
        [self.scrollView zoomToRect:zoomRect animated:YES];
    }
    
    if (self.isPositive)
    {
        self.imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"female_%@_back",self.currentModel.imageName]];
    }
    else
    {
        self.imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"female_%@",self.currentModel.imageName]];
    }
    self.isPositive = !self.isPositive;
    
}

@end
